<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html class="no-js" lang="zxx">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Shop | eCommers</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" type="image/x-icon"
          href="${pageContext.request.contextPath}/assets/img/icon/favicon.png">
    <jsp:include page="${pageContext.request.contextPath}/common/css.jsp"></jsp:include>
</head>
<body>
<jsp:include page="${pageContext.request.contextPath}/common/header2.jsp"></jsp:include>

<main>
    <section class="cart_area">
        <div class="container">
            <div class="cart_inner">
                <div class="table-responsive">
                    <table class="table">

                        <tr>
                            <th scope="col">name</th>
                            <th scope="col">price</th>
                            <th scope="col">description</th>
                            <th scope="col">count</th>
                            <th scope="col">category</th>
                            <th scope="col">supplier</th>
                        </tr>
                        <tbody>
                        <c:forEach items="${Supplier.getProductList()}" var="product">
                            <tr>
                                <td>
                                    <a href="">
                                        <p>${product.productName}</p>
                                    </a>
                                </td>
                                <td>
                                    <h5>${product.price}</h5>
                                </td>
                                <td>
                                    <h5>${product.description}</h5>
                                </td>
                                <td>
                                    <h5>${product.count}</h5>
                                </td>
                                <td>
                                    <h5>${product.category.categoryName}</h5>
                                </td>
                                <td>
                                    <h5>${product.supplier.name}</h5>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>
    <!--================End Cart Area =================-->
</main>
<jsp:include page="${pageContext.request.contextPath}/common/Foot.jsp"></jsp:include>
<jsp:include page="${pageContext.request.contextPath}/common/js.jsp"></jsp:include>
</body>
</html>